package com.a214.yxz.yuejian013.Base;

import android.support.v4.app.Fragment;

/**
 * Created by Oliver on 10/25/2017.
 */

public abstract class BaseSFragment extends Fragment {

    public String getUserId() {
        return BaseSActivity.getUserId();
    }

    public void saveUserId(String userId) {
        BaseSActivity.saveUserId(userId);
    }

    public String getUserName() {
        return BaseSActivity.getUserName();
    }

    public String getPhoneNum() {
        BaseSActivity baseSActivity = (BaseSActivity) getActivity();
        return baseSActivity.getPhoneNum();
    }

    public void savePhoneNum(String phoneNum) {
        BaseSActivity.savePhoneNum(phoneNum);
    }

    public String getSessionID() {
        return BaseSActivity.getSessionID();
    }
}
